Programming iOS 9: Dive Deep into Views, View Controllers, and Frameworks by Matt Neuburg
Author:Matt Neuburg [Neuburg, Matt]
Language: eng
Format: epub, pdf
ISBN: 9781491936856
Publisher: O’Reilly Media, Inc.
Published: 2015-12-15T03:00:00+00:00
Figure 8-11. Phone directory app in edit mode
Let’s implement this for phone numbers in our name-and-phone-number app, allowing the user to give a person any quantity of phone numbers (Figure 8-11):
override func tableView(tableView: UITableView, editingStyleForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCellEditingStyle { if indexPath.section == 1 { let ct = self.tableView( tableView, numberOfRowsInSection:indexPath.section) if ct-1 == indexPath.row { return .Insert } return .Delete; } return .None }
The person’s name has no editing control (a person must have exactly one name), so we prevent it from indenting in edit mode:
Download
Programming iOS 9: Dive Deep into Views, View Controllers, and Frameworks by Matt Neuburg.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Filmora Efficient Editing by Alexander Zacharias(5758)
The Infinite Retina by Robert Scoble Irena Cronin(5228)
Learn Wireshark - Fundamentals of Wireshark. by Lisa Bock(3961)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3932)
Edit Like a Pro with iMovie by Regit(3408)
Linux Administration Best Practices by Scott Alan Miller(2858)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic & Jasmin Redzepagic(2835)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2520)
Mastering PowerShell Scripting - Fourth Edition by Chris Dent(2385)
Docker on Windows by Stoneman Elton(2317)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2312)
Creative Projects for Rust Programmers by Carlo Milanesi(2231)
Hands-On AWS Penetration Testing with Kali Linux by Karl Gilbert(2107)
Hands-On Linux for Architects by Denis Salamanca(2051)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(2004)
Computers For Seniors For Dummies by Nancy C. Muir(1995)
The Old New Thing by Raymond Chen(1940)
Linux Kernel Debugging by Kaiwan N Billimoria(1762)
